package com.test.test.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.test.test.entity.User;

public interface UserRepos extends JpaRepository<User,Integer>{
	
	User findById(Integer id);
	
	User findByMobileAndPassword(String mobile,String password);
	
	Page<User> findByUserType(Integer userType, Pageable pageable);
	
	Page<User> findByUserName(String userName, Pageable pageable);
	
	List<User> findByUserName(String userName);
}
